package ltd.dujiabao.springcloud.service.impl;

import ltd.dujiabao.springcloud.dao.StorageMapper;
import ltd.dujiabao.springcloud.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : DuJiabao
 * @Project : springcloud
 * @Time : 2021/5/26 21:42
 * @Desc :
 */
@Service
public class StorageServiceImpl implements StorageService {
  @Autowired
  StorageMapper storageMapper;

  @Override
  public int decrease(Long productId, Integer count) {
    return storageMapper.decrease(productId, count);
  }
}
